#!/bin/bash

#. "/home/st/.bashrc"

filename="${PATH_MAIN_REPO_FN_DIR}/dir_gclone_/gclone_tst/exec._tst" 

# echo -e "${HLIGHT}---start file://$filename ---${NORMAL}" # start file

idir=$(pwd)

# cd "$(prs_f -d $filename)" || qq_exit "$(prs_f -d filename) not found"

dir=$(prs_f -d "$filename")
cd "$dir" || qq_exit

wrp_fifs1_ rm -rf /home/st/REPOBARE/_repo/tgu -cd1
echo | gclone_ _deb &>/dev/null

# . "$dir"/_flow_tst.sh &>res

# cd "$dir"/use/ || qq_exit

# ./main.bexe &>res

# flag=1
# if ! diff -q ""$dir"/pre" ""$dir"/res" >/dev/null; then
#     flag=0
# fi
# cd 
# wrp_fifs1_ cd /home/st/REPOBARE/_repo/tgu -d1
cd /home/st/REPOBARE/_repo/tgu
if ! is_gindir_ ; then
    echo "ANY in $dir fail" >&2
    return 1
else
    echo "ALL in $dir true"
    return 0
fi

cd "$idir"

unset filename